package com.zemo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zemo.dao.ProductDao;
import com.zemo.entity.Product;
import com.zemo.service.ProductService;

/**
 * @ClassName: ProductServiceImpl
 * @author: SuperZemo
 * @date: Mar 31, 2014 1:58:02 AM
 * @email:chenzeming@lanbaoo.com
 * @Description: TODO
 */
@Service
@Transactional
public class ProductServiceImpl implements ProductService {
	
	@Autowired
	private ProductDao productDao;

	@Override
	public List<Product> listAllProducts() {
		return productDao.listAllProducts();
	}

	@Override
	public Product getProduct(int id) {
		return productDao.getProduct(id);
	}

}
